<#macro content>
<div class="wrapper">
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <ul class="navbar-nav ml-auto">
            <!-- Messages Dropdown Menu -->
            <li class="nav-item dropdown">
                <a class="nav-link" data-toggle="dropdown" href="#">
                    欢迎您，admin
                </a>
                <div class="dropdown-menu dropdown-menu-right">
                    <a href="#" class="dropdown-item">
                        个人中心
                    </a>
                    <div class="dropdown-divider"></div>
                    <a href="#" class="dropdown-item">
                        退出
                    </a>
                </div>
            </li>
        </ul>
    </nav>

    <#include "../common/left.html"/>

    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <form role="form">
                        <div class="row m-1">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t1">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t2">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t3">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t4">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t5">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t6">
                            <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t7">
                            <button type="submit" class="btn btn-default mt-1 mr-1"><i class="fas fa-search">查询</i></button>
                        </div>
                    </form>
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->

        <!-- Main content -->
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                    <div class="card">
                        <div class="card-header">
                            <form role="form">
                                <div class="row m-1">
                                    <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t1">
                                    <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t2">
                                    <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t2">
                                    <input type="text" class="form-control col-2 mt-1 mr-1" placeholder="请输入搜索内容" name="t2">

                                    <button type="submit" class="btn btn-default mt-1 mr-1"><i class="fas fa-search">查询</i></button>
                                </div>
                            </form>

                            <div class="row m-1 border-top border-info">
                                <button type="submit" class="btn btn-default mt-1 mr-1"><i class="fas fa-search">查询</i></button>
                            </div>
                        </div>
                        <!-- /.card-header -->
                        <div class="card-body">
                            <div class="dataTables_wrapper dt-bootstrap4">
                                <div class="row">
                                    <div class="col-12">
                                        <table id="example2" class="table table-bordered table-hover">
                                            <thead>
                                            <tr>
                                                <th>ID</th>
                                                <th>账户名</th>
                                                <th>昵称</th>
                                                <th>邮箱</th>
                                                <th>角色</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <#if userList?? && userList?size gt 0>
                                            <#list userList as t>
                                            <tr>
                                                <td>${(t.id)!}</td>
                                                <td>${(t.username)!}</td>
                                                <td>${(t.nickname)!}</td>
                                                <td>${(t.email)!}</td>
                                                <td>${(t.roleNames)!}</td>
                                                <td>${(t.deleted?string('<span class="text-danger">锁定</span>', '正常'))!}</td>
                                                <td>删除</td>
                                            </tr>
                                            </#list>
                                        </#if>
                                        </tbody>
                                        </table>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-12 col-md-5">
                                        <div class="dataTables_info" id="example2_info" role="status" aria-live="polite">
                                            共计 100 条数据
                                        </div>
                                    </div>
                                    <div class="col-sm-12 col-md-7">
                                        <div class="dataTables_paginate paging_simple_numbers" id="example2_paginate">
                                            <ul class="pagination">
                                                <li class="paginate_button page-item previous disabled" id="example2_previous"><a href="#" aria-controls="example2" data-dt-idx="0" tabindex="0" class="page-link">Previous</a></li>
                                                <li class="paginate_button page-item active"><a href="#" aria-controls="example2" data-dt-idx="1" tabindex="0" class="page-link">1</a></li>
                                                <li class="paginate_button page-item "><a href="#" aria-controls="example2" data-dt-idx="2" tabindex="0" class="page-link">2</a></li>
                                                <li class="paginate_button page-item "><a href="#" aria-controls="example2" data-dt-idx="3" tabindex="0" class="page-link">3</a></li>
                                                <li class="paginate_button page-item "><a href="#" aria-controls="example2" data-dt-idx="4" tabindex="0" class="page-link">4</a></li>
                                                <li class="paginate_button page-item "><a href="#" aria-controls="example2" data-dt-idx="5" tabindex="0" class="page-link">5</a></li>
                                                <li class="paginate_button page-item "><a href="#" aria-controls="example2" data-dt-idx="6" tabindex="0" class="page-link">6</a></li>
                                                <li class="paginate_button page-item next" id="example2_next"><a href="#" aria-controls="example2" data-dt-idx="7" tabindex="0" class="page-link">Next</a></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th style="width: 10px">#</th>
                                    <th>Task</th>
                                    <th>Progress</th>
                                    <th style="width: 40px">Label</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>1.</td>
                                    <td>Update software</td>
                                    <td>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar progress-bar-danger" style="width: 55%"></div>
                                        </div>
                                    </td>
                                    <td><span class="badge bg-danger">55%</span></td>
                                </tr>
                                <tr>
                                    <td>2.</td>
                                    <td>Clean database</td>
                                    <td>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar bg-warning" style="width: 70%"></div>
                                        </div>
                                    </td>
                                    <td><span class="badge bg-warning">70%</span></td>
                                </tr>
                                <tr>
                                    <td>3.</td>
                                    <td>Cron job running</td>
                                    <td>
                                        <div class="progress progress-xs progress-striped active">
                                            <div class="progress-bar bg-primary" style="width: 30%"></div>
                                        </div>
                                    </td>
                                    <td><span class="badge bg-primary">30%</span></td>
                                </tr>
                                <tr>
                                    <td>4.</td>
                                    <td>Fix and squish bugs</td>
                                    <td>
                                        <div class="progress progress-xs progress-striped active">
                                            <div class="progress-bar bg-success" style="width: 90%"></div>
                                        </div>
                                    </td>
                                    <td><span class="badge bg-success">90%</span></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!-- /.card-body -->
                        <div class="card-footer clearfix">
                            <ul class="pagination pagination-sm m-0 float-right">
                                <li class="page-item"><a class="page-link" href="#">&laquo;</a></li>
                                <li class="page-item"><a class="page-link" href="#">1</a></li>
                                <li class="page-item"><a class="page-link" href="#">2</a></li>
                                <li class="page-item"><a class="page-link" href="#">3</a></li>
                                <li class="page-item"><a class="page-link" href="#">&raquo;</a></li>
                            </ul>
                        </div>
                    </div>
                    </div>
                </div>
                <!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content -->
    </div>
</div>
</#macro>
<#assign css>
<link rel="stylesheet" href="/lib/datatables-bs4/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="/lib/datatables-responsive/css/responsive.bootstrap4.min.css">
</#assign>
<#include "../common/layout.html"/>